package com.nacos.consumer.listener;

import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;


/**
 * @ClassName:
 * @author:
 * @Description:
 * @Date
 **/
@Component
public class KafkaConsumer {

    @KafkaListener(topics = {"testTopic"})
    public void onMessage(String message) {
        System.out.println("收到了消息：" + message);
    }
}
